﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Data;
using System.Data.Common;


using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data;
using System.Data.Common;
namespace CAD
{
    public class DAO
    {
        #region Attributes
        protected Database defaultDB;
        #endregion

        public DAO()
        {
            DatabaseProviderFactory factory = new DatabaseProviderFactory();

            // The actual concrete type is determined by the configuration settings. 
            defaultDB = factory.CreateDefault();

            // Create a Database object from the factory using the connection string name. 
            // Database namedDB = factory.Create("SQLServer");
        }
    }
}
